import React,{FC} from 'react'
import {Link}from "umi"
//定义props的类型接口
interface propType{
    name?:string
}
const Home:FC<propType>=(props)=>{
    return(
        <fieldset>
            <legend>主页</legend>
           <Link to="/home/welcome">欢迎页</Link>|
           <Link to="/home/djradio">主播电台</Link>
            {props.children}
        </fieldset>
    )
}
export default Home